home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
tools
/
cdc
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1997-06-05
|
2KB
|
53 lines
LC = hlk -x
AS = $(GCC_AS) /u /g
CC = gcc
OPS = -S -O
CDC.x: CDC.o CDRC.o CDR2.o CDC_CLIB.o
'ZCDC -r
'if EXIST CDC.x CDC -r
'COPY CDC*.MAC a:\INCLUDE
'COPY CDC_CLIB.H a:\INCLUDE
'COPY CDC_CLIB.o a:\LIB
$(LC) CDC.o CDRC.o CDR2.o CDC_CLIB.o >> ERR
CDC.o : CDC.s CDRD.s CDRT.s CDRC_.s CDRC__.s SCSIC.s
@echo --------------------
Assemble
[
$<
]
@$(AS) -d CDC.s > ERR
CDRC_.s : CDRC_.c
@echo ---------------------
Compile
[
$<
]
@$(CC) CDRC_.c $(OPS) -o$(temp)\T!M!P.s1 -fall-text
@echo
S.Edit
@SED -e "s/\t.include/*/" $(temp)\T!M!P.s1 > $(temp)\T!M!P.s2
@SED -e "s/\t.end/*/" $(temp)\T!M!P.s2 > CDRC_.s
@'echo ----
@'echo ヘッダと[.end]を消去する!!!!
@'echo ----
@'SUPERED CDRC_.s
del -y $(temp)\T!M!P.s? > nul
CDRC__.s : CDRC__.c
@echo ---------------------
Compile
[
$<
]
@$(CC) CDRC__.c $(OPS) -o$(temp)\T!M!P.s1 -fall-text
@echo
S.Edit
@SED -e "s/\t.include/*/" $(temp)\T!M!P.s1 > $(temp)\T!M!P.s2
@SED -e "s/\t.end/*/" $(temp)\T!M!P.s2 > $(temp)\T!M!P.s3
@SED -e "s/\?/???/" $(temp)\T!M!P.s3 > $(temp)\T!M!P.s4
@SED -e "s/\RUNS_HUM/*/" $(temp)\T!M!P.s4 > CDRC__.s
@'@echo ----
@'@echo LABEL ?xx を変更
@'@echo [.data]とヘッダと[.end]を消去する!!!!
@'@echo ----
@'SUPERED CDRC__.s
del -y $(temp)\T!M!P.s? > nul
CDRC.o : CDRC.c
@echo ---------------------
Compile
[
$<
]
@$(CC) $< -O -c -fall-text
%.o : %.s
@echo --------------------
Assemble
[
$<
]
@$(AS) $< >> ERR